#pragma once

namespace HalfNetworkNET 
{
	public ref class ERRORCODE
	{
	public:
		literal UINT16 NONE									= 0;
		literal UINT16 CLIENT_FAILED_CONFIGFILE				= 10;
		literal UINT16 SERVER_FAILED_CONFIGFILE				= 11;
		literal UINT16 CREATE_PROACTORFACTORY				= 12;
		literal UINT16 CLIENT_ADDACCEPTOR					= 14;
		literal UINT16 SERVER_ADDACCEPTOR					= 17;
		literal UINT16 CLIENT_OPEN							= 21;
		literal UINT16 SERVER_OPEN							= 26;
		literal UINT16 CREATEWINDOW							= 31;
		literal UINT16 FAILED_ADD_TIMER						= 36;
		
		literal UINT16 RECVDATA_LITTLE_PACKET_HEADER_SIZE	= 41;
		literal UINT16 RECVDATA_LITTLE_PACKET_BODY_SIZE		= 42;
		
		literal UINT16 DB_WORK_TYPE							= 51;
		literal UINT16 DB_WORK_NULL_TASK					= 52;
		
		literal UINT16 CLIENT_RECV_ZERO_DATA				= 71;
		literal UINT16 INIT_SERVER_FAILED_CREATE_THREAD		= 72;
	};
}